<script>
import outMain from "@/components/outMain.vue";
import { ElMessage, ElMessageBox } from "element-plus";
import { gwdzDetails } from "@/http/api";
export default {
  components: { outMain },
  name: "",
  data() {
    return {
      detailId: this.$route.query.id,

      formData: {},
    };
  },
  props: {},
  setup() {},
  methods: {
    backFn() {
      this.$router.back();
    },
    getData() {
      gwdzDetails({ recruit_id: this.detailId }).then((res) => {
        if (res.data.code == 1) {
          this.formData = res.data.data;
        }
      });
    },
    linkFn(url, id, type) {
      this.$router.push({ path: url, query: { id: id, type: type } });
    },
  },
  mounted() {},
  created() {
    this.getData();
  },
};
</script>
<template>
  <outMain>
    <div class="formCont">
      <div class="formStep">
        <div class="formHead">
          <div>岗位代招详情</div>
          <btn value="返回上一级" @ok="backFn"></btn>
        </div>
        <div class="formMain">
          <div class="stepCont">
            <div class="formDes">
              <div class="desTitle">基本信息</div>
              <div class="desCont">
                <div class="desItem">
                  <div class="desName">船东名称</div>
                  <div class="desText">
                    <span
                      class="linkText_"
                      @click="
                        linkFn('/booterListDetail', formData.shipowner_id)
                      "
                    >
                      {{ formData.shipowner_name }}
                    </span>
                  </div>
                </div>
                <div class="desItem">
                  <div class="desName">负责人</div>
                  <div class="desText">{{ formData.shipowner_person }}</div>
                </div>
                <div class="desItem">
                  <div class="desName">手机号</div>
                  <div class="desText">{{ formData.shipowner_mobile }}</div>
                </div>
                <div class="desItem">
                  <div class="desName">操作状态</div>
                  <div class="desText">
                    <el-tag v-if="formData.recruit_status == 1">待处理</el-tag>
                    <el-tag v-if="formData.recruit_status == 2">已代招</el-tag>
                    <el-tag v-if="formData.recruit_status == 3">已过滤</el-tag>
                  </div>
                </div>
                <div class="desItem">
                  <div class="desName">创建时间</div>
                  <div class="desText">{{ formData.create_time }}</div>
                </div>
              </div>
            </div>
            <div class="formDes">
              <div class="desTitle">招募内容</div>
              <div class="desCont desText">
                {{ formData.recruit_content }}
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </outMain>
</template>
<style scoped lang="less"></style>
